﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<UserEntity>" %>



<div class="fr-widget">
    <div class="header">
        <div class="icon">
        </div>
        <span>Thông tin liên hệ </span>
    </div>
    <%using (Html.BeginForm("UpdateContact", "CPanel", FormMethod.Post, new { @id = "ContactF", @onRequest = "$.MvcForum.showLoading()", @onSuccess = "$.MvcForum.hideLoading();$.MvcForum.ajaxSuccess(msg)" }))
      {

%>

<%=Html.AntiForgeryTokenX("UPDATE_CONTACT")%>
    <table cellpadding="0" cellspacing="1" width="100%">
        <tr>
            <td class="table-cell width40">
                Họ tên
            </td>
            <td class="table-cell">
                <input type="text" class="input" value="<%=Model.FullName %>" id="fullname" name="fullname" />
            </td>
        </tr>
       <%-- <tr>
            <td class="table-cell">
                Giới tính
            </td>
            <td class="table-cell">
                <asp:DropDownList runat="server" ID="_Sex">
                </asp:DropDownList>
            </td>
        </tr>--%>
        <tr>
            <td class="table-cell">
                Ngày sinh
            </td>
            <td class="table-cell">
                <input type="text" class="input datepicker {validate:{required:true}}" onkeypress="return false" value="<%=Model.Birthday %>" id="birthday" name="birthday" />
            </td>
        </tr>
        <tr>
            <td class="table-cell">
                Địa chỉ
            </td>
            <td class="table-cell">
                 <input type="text" class="input" id="address" name="address" value="<%=Model.Address %>"/>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="table-caption">
                Thông tin khác
            </td>
        </tr>
        <tr>
            <td class="table-cell">
               Website
            </td>
            <td class="table-cell">
                <input type="text" class="input {validate:{url:true}}" id="website" name="website" value="<%=Model.Website %>" />
            </td>
        </tr>
        <tr>
            <td class="table-cell">
               Blog
            </td>
            <td class="table-cell">
                <input type="text" class="input {validate:{url:true}}" id="blog" name="blog" value="<%=Model.Blog %>"/>
            </td>
        </tr>
        <tr>
            <td class="table-cell">
               YahooId
            </td>
            <td class="table-cell">
                <input type="text" class="input" maxlength="36" id="ym" name="ym" value="<%=Model.YahooId %>"/>
            </td>
        </tr>
        <tr>
            <td class="table-cell">
               SkypeId
            </td>
            <td class="table-cell">
                <input type="text" class="input" maxlength="36" id="sk" name="sk" value="<%=Model.SkypeId %>"/>
            </td>
        </tr>
        <tr>
            <td class="table-cell">
               MSN
            </td>
            <td class="table-cell">
                <input type="text" class="input" maxlength="36" id="msn" name="msn" value="<%=Model.MSN %>"/>
            </td>
        </tr>
        <tr>
            <td class="table-cell">
               AOL
            </td>
            <td class="table-cell">
                <input type="text" class="input" maxlength="36" id="aol" name="aol" value="<%=Model.AOL %>"/>
            </td>
        </tr>
        <tr>
            <td class="table-cell">
               &nbsp;
            </td>
            <td class="table-cell">
               <input type="button" class="button" onclick="$.MvcForum.ajaxSubmit('ContactF')"  value="Cập nhật"/>
            </td>
        </tr>
    </table>
    <%
      }%>
</div>



<script type="text/javascript">
    $(function () {
        $('.datepicker').datepicker({

            yearRange: '-80:+10',
            changeMonth: true,
            changeYear: true


        });
    });
</script>
